package mapper;

import com.javabean.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

public interface permissionMapper {

    @Select("select rp.rid,p.pid,p.url,p.desc pdesc from permission p,role_permission rp where p.pid=rp.pid and rp.rid=#{rid}")
    ArrayList<Permission> selectByRid(int rid);


}
